home *** CD-ROM | disk | FTP | other *** search
- put what into process
- set cursor to watch
- repeat with x = 1 to the number of chars in process
- get char x of process
- if it is ";" then put "," into char x of process
- end repeat
- put item 1 of process into whatkind
- put item 2 of process into ResName
- if ResName is "<unnamed>" then put item 3 of process into ResName
- CopyRes importpath,importwhere,whatkind,ResName
- if it is empty then do restext ("TEXT", "Exit", colorauthoringpath)
- if there is a window "Resource List" then
- put the text of window "Resource List" into TheText
- if offset (process, TheText) is "0" then
- put process & return before line 1 of TheText
- sort TheText
- delete line 1 of theText
- set the text of window "Resource List" to TheText
- end if
- end if
- if whatkind is "snd " then
- if there is a window "Sounds List" then put the text of window "Sounds List" into theTEXT
- if offset (process, theTEXT) is "0" then
- put process & return before line 1 of theTEXT
- put "Added: " before char 1 of line 1 of theTEXT
- set the text of window "Sounds List" to theTEXT
- end if
- end if
- if whatkind is "PICT" then
- if there is a window "Pictures List" then put the text of window "Pictures List" into TheText
- if offset (process, TheText) is "0" then
- put process & return before line 1 of TheText
- put "Added: " before char 1 of line 1 of theTEXT
- set the text of window "Pictures List" to TheText
- end if
- end if